package sudroid.android.app;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import java.util.regex.Pattern;

public class Telephony
{
  public static Intent callNeedNoPermission(String paramString)
  {
    Uri localUri = Uri.parse("tel:" + paramString);
    return new Intent("android.intent.action.DIAL", localUri);
  }

  public static Intent callNeedPermission(String paramString)
  {
    Uri localUri = Uri.parse("tel:" + paramString);
    return new Intent("android.intent.action.CALL", localUri);
  }

  public static Intent sendSms(String paramString1, String paramString2)
  {
    Uri localUri = Uri.parse("smsto:" + paramString1);
    Intent localIntent1 = new Intent("android.intent.action.SENDTO", localUri);
    Intent localIntent2 = localIntent1.putExtra("sms_body", paramString2);
    return localIntent1;
  }

  public static void sendSms(Context paramContext, String paramString)
  {
    Intent localIntent1 = new Intent("android.intent.action.VIEW");
    Intent localIntent2 = localIntent1.setType("vnd.android-dir/mms-sms");
    Intent localIntent3 = localIntent1.putExtra("sms_body", paramString);
    if (!(paramContext instanceof Activity))
      Intent localIntent4 = localIntent1.setFlags(268435456);
    paramContext.startActivity(localIntent1);
  }

  public static boolean verifyTelnumber(String paramString)
  {
    return Pattern.matches("^1[358][0-9]{9}$", paramString);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.android.app.Telephony
 * JD-Core Version:    0.6.0
 */